import request from '@/utils/request'

export function getMemberList(query) {
  return request({
    url: '/member/list',
    method: 'get',
    params: query
  })
}

export function updateMember(data) {
  return request({
    url: '/member/edit',
    method: 'post',
    data
  })
}
export function createMember(data) {
  return request({
    url: '/member/add',
    method: 'post',
    data
  })
}

export function delMember(id) {
  return request({
    url: '/member/del',
    method: 'delete',
    params: { id }
  })
}
